﻿<!--{include manage_header}-->
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="/manage/team/index.php">产品管理</a></li>
    <li><a href="/manage/team/edit.php">项目审核</a></li>
	<li style="float:right;  font-size:22px; ">
	 <a href="javascript::" style="padding-right:30px;color:#3B95C8;">
    <!--{if $_SESSION['ali_token']}-->${mb_strimwidth($login_user['realname'],0,10)}<!--{else}-->${mb_strimwidth($login_user['username'],0,10)}<!--{/if}-->
	</a> </li>
    </ul>
</div>
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<!--<div class="dashboard" id="dashboard">
		<ul>${mcurrent_team($selector)}</ul>
	</div>-->
	<div class="formtitle" style="padding-left:6px;"><span>项目列表</span></div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <!--<h2>项目列表</h2>-->
					<ul class="filters">
						<li>${!$audit ? '全部' : '<a href="?">全部</a>'}</li>
						<li>${$audit=='N' ? '未提交' : '<a href="?audit=N">未提交</a>'}</li>
						<li>${$audit=='Y' ? '审核中' : '<a href="?audit=Y">审核中</a>'}</li>
						<li>${$audit=='F' ? '未通过' : '<a href="?audit=F">未通过</a>'}</li>
						<li>${$audit=='T' ? '已通过' : '<a href="?audit=T">已通过</a>'}</li>
						<li>${$audit=='D' ? '审核失败' : '<a href="?audit=D">审核失败</a>'}</li>
					</ul>
				</div>
                <div class="sect"><!--form action="/manage/sh/all_index.php" method="get"><p style="margin:5px 0;">结束日期：<input type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="cbday" value="{$cbday}" /> - <input type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="ceday" value="{$ceday}" />&nbsp;<br>标题：<input type="text" name="uname" class="h-input" value="${htmlspecialchars($uname)}" >&nbsp;项目号：<input type="text" name="my_sj" class="h-input" value="${htmlspecialchars($my_sj)}" >&nbsp;<select name="ucity" style="width:120px;">${Utility::Option(option_category('city'), $ucity, '所有城市')}</select>&nbsp;<input type="submit" value="筛选" class="formbutton"  style="padding:1px 6px;"/></form-->
					<table id="orders-list" cellspacing="0" cellpadding="5" border="1" bordercolor="#89B4D6" style="width:99%" class="coupons-table">
					<tr><th width="40">ID</th><th width="400">项目名称</th><th width="80" nowrap>类别</th><th width="100">日期</th><th width="50">申请者ID</th><th width="50">价格</th><th width="140">操作</th></tr>
					<!--{if is_manager(1)}-->
					<!--{loop $teams $index $one}-->
					<!--${$oldstate = $one['state']}-->
					<!--${$one['state'] = team_state($one)}-->
					<tr ${$index%2?'':'class="alt"'} id="team-list-id-{$one['id']}">
						<td>{$one['id']}</td>
						<td>${$one['business_audit']=='N' ? '【<span style="color:#FF00FF;">未提交</span>】' : ''}
							${$one['business_audit']=='Y' ? '【<span style="color:#FF0000;">审核中</span>】' : ''}
							${$one['business_audit']=='F' ? '【<span style="color:#0000FF;">未通过</span>】' : ''}
							${$one['business_audit']=='T' ? '【<span style="color:#00FF00;">已通过</span>】' : ''}
							${$one['business_audit']=='D' ? '【<span style="color:#666666;">审核失败</span>】' : ''}
							<a class="deal-title" href="/team.php?id={$one['id']}" target="_blank" title="{$one['title']}">${mb_strimwidth($one['title'],0,46,'...')}</a>						</td>
						<td nowrap>{$cities[$one['city_id']]['name']}<br/>{$groups[$one['group_id']]['name']}</td>
						<td nowrap>${date('Y-m-d',$one['begin_time'])}<br/>${date('Y-m-d',$one['end_time'])}</td>
						<td nowrap>{$partners[$one['partner_id']]['username']}</td>
						<td nowrap><span class="money">{$currency}</span>${moneyit($one['team_price'])}<br/><span class="money">{$currency}</span>${moneyit($one['market_price'])}</td>
						<td class="op" nowrap><a href="/manage/team/biz/ajax.php?action=nopass&id={$one['id']}" class="ajaxlink" ask="确定项目审核不通过吗？" >未通过</a>｜<a href="/manage/team/biz/ajax.php?action=pass&id={$one['id']}" class="ajaxlink" ask="确定项目审核通过吗？" >通过审核</a>｜<a href="/manage/team/biz/ajax.php?action=unpass&id={$one['id']}" class="ajaxlink" ask="确定关闭项目吗？" >关闭审核</a>
						<hr>
						<a href="/manage/team/biz/ajax.php?action=teamdetail&id={$one['id']}" class="ajaxlink">详情</a>｜<a href="/manage/team/biz/edit.php?id={$one['id']}">编辑</a>｜
						<a href="/manage/team/biz/ajax.php?action=teamremove&id={$one['id']}" class="ajaxlink" ask="确定删除本项目吗？" >删除</a>
						<!--{if (in_array($one['state'],array('success','soldout')))}-->｜<a href="/manage/team/biz/down.php?id={$one['id']}" target="_blank">下载</a><!--{/if}--><!--{if $one['delivery']=='express'}--><br /><a href="/manage/team/ajax.php?action=smsexpress&id={$one['id']}" class="ajaxlink">短信快递单号</a>【<a href="/ajax/manage.php?action=bydx&id={$one['id']}"  class="ajaxlink"><!--${$count_dx = Table::Count('jl_by_dx',array('team_id' => $one['id'],));echo $count_dx;}--></a>】<!--{/if}--> | <a href="/manage/team/biz/downlucky.php?id={$one['id']}" target="_blank">下载幸运编号</a></td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="8">{$pagestring}</tr>
					<!--{else}-->
					<!--{loop $teamss $index $one}-->
					<!--${$oldstate = $one['state']}-->
					<!--${$one['state'] = team_state($one)}-->
					<tr ${$index%2?'':'class="alt"'} id="team-list-id-{$one['id']}">
						<td>{$one['id']}</td>
						<td>${$one['business_audit']=='N' ? '【<span style="color:#FF00FF;">未提交</span>】' : ''}
							${$one['business_audit']=='Y' ? '【<span style="color:#FF0000;">审核中</span>】' : ''}
							${$one['business_audit']=='F' ? '【<span style="color:#0000FF;">未通过</span>】' : ''}
							${$one['business_audit']=='T' ? '【<span style="color:#00FF00;">已通过</span>】' : ''}
							${$one['business_audit']=='D' ? '【<span style="color:#666666;">审核失败</span>】' : ''}
							<a class="deal-title" href="/team.php?id={$one['id']}" target="_blank" title="{$one['title']}">${mb_strimwidth($one['title'],0,46,'...')}</a>						</td>
						<td nowrap>{$citiess[$one['city_id']]['name']}<br/>{$groupss[$one['group_id']]['name']}</td>
						<td nowrap>${date('Y-m-d',$one['begin_time'])}<br/>${date('Y-m-d',$one['end_time'])}</td>
						<td nowrap>{$partnerss[$one['partner_id']]['username']}</td>
						<td nowrap><span class="money">{$currency}</span>${moneyit($one['team_price'])}<br/><span class="money">{$currency}</span>${moneyit($one['market_price'])}</td>
						<td class="op" nowrap><a href="/manage/team/biz/ajax.php?action=nopass&id={$one['id']}" class="ajaxlink" ask="确定项目审核不通过吗？" >未通过</a>｜<a href="/manage/team/biz/ajax.php?action=pass&id={$one['id']}" class="ajaxlink" ask="确定项目审核通过吗？" >通过审核</a>｜<a href="/manage/team/biz/ajax.php?action=unpass&id={$one['id']}" class="ajaxlink" ask="确定关闭项目吗？" >关闭审核</a>
						<hr>
						<a href="/manage/team/biz/ajax.php?action=teamdetail&id={$one['id']}" class="ajaxlink">详情</a>｜<a href="/manage/team/biz/edit.php?id={$one['id']}">编辑</a>｜
						<a href="/manage/team/biz/ajax.php?action=teamremove&id={$one['id']}" class="ajaxlink" ask="确定删除本项目吗？" >删除</a>
						<!--{if (in_array($one['state'],array('success','soldout')))}-->｜<a href="/manage/team/biz/down.php?id={$one['id']}" target="_blank">下载</a><!--{/if}--><!--{if $one['delivery']=='express'}--><br /><a href="/manage/team/ajax.php?action=smsexpress&id={$one['id']}" class="ajaxlink">短信快递单号</a>【<a href="/ajax/manage.php?action=bydx&id={$one['id']}"  class="ajaxlink"><!--${$count_dx = Table::Count('jl_by_dx',array('team_id' => $one['id'],));echo $count_dx;}--></a>】<!--{/if}--> | <a href="/manage/team/biz/downlucky.php?id={$one['id']}" target="_blank">下载幸运编号</a></td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="8">{$pagestrings}</tr>
					<!--{/if}-->
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include manage_footer}-->
